package com.scs.application.modules.wm.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.scs.application.core.consts.ErrorCode;
import com.scs.application.core.exception.BusinessException;
import com.scs.application.core.export.service.ImportService;
import com.scs.application.core.utils.CacheUtils;
import com.scs.application.core.utils.StringUtils;
import com.scs.application.modules.sys.model.RestResult;
import com.scs.application.modules.wm.entity.Stock;
import com.scs.application.utils.ImportResult;
import org.springframework.web.bind.annotation.*;

import com.scs.application.core.mvc.controller.CrudController;
import com.scs.application.modules.wm.service.OrderBarcodeService;
import com.scs.application.modules.wm.entity.OrderBarcode;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 */
@RestController
@RequestMapping("/wm/order_barcode")
public class OrderBarcodeController extends CrudController<OrderBarcodeService, OrderBarcode>{

    @GetMapping("/getBarcode")
    public RestResult getBarcode(@RequestParam("lineId") String lineId) {

        List<Stock> barorders=service.getBarcode(lineId);
        System.out.print(barorders);
        return  RestResult.ok("success",barorders);
    }
}
